package com.ruoyi.common.utils.baidu.entity;

/**
 * @author: jkk
 * @create: 2025/3/19-20:10
 * @Description:
 */
public class Point {
    private double lng; // 经度
    private double lat; // 纬度

    public Point(double lng, double lat) {
        this.lng = lng;
        this.lat = lat;
    }

    public double getLng() {
        return lng;
    }

    public double getLat() {
        return lat;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) return true;
        if (obj == null || getClass() != obj.getClass()) return false;
        Point point = (Point) obj;
        return Double.compare(point.lng, lng) == 0 &&
                Double.compare(point.lat, lat) == 0;
    }
}
